From: Florian Müllner Date: Fri, 27 Feb 2015 18:34:45 +0000 (+0100) Subject: runDialog: Disable restart command on wayland X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1598 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a101f46544ee78a208e9deffba668070cbf50873;p=gnome-shell.git runDialog: Disable restart command on wayland Clients can be expected to deal with the WM going away temporarily, but not the display server - so when running as wayland compositor, a restart is generally a fancy way of killing the user session, and there's little we can do about it except for preventing the user to shoot herself in the foot by throwing an error. https://bugzilla.gnome.org/show_bug.cgi?id=741665 --- diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index 9c9ee6706..495567f03 100644 --- a/js/ui/runDialog.js +++ b/js/ui/runDialog.js @@ -272,6 +272,10 @@ const RunDialog = new Lang.Class({ }, _restart: function() { + if (Meta.is_wayland_compositor()) { + this._showError('Restart is not available on Wayland'); + return; + } this._shouldFadeOut = false; this.close(); Meta.restart(_("Restarting…"));